Skip to content

Conversation

@priyansh17
Copy link
Contributor

This is a cherry-pick of #3379

/assign andyzhangx

…apshot disk size

refactor: streamline snapshot handling in CreateVolume and update fake driver methods

fix: adjust disk size handling for snapshot creation and improve size validation logic

fix: increase max snapshot size difference allowed from 1 GiB to 50 GiB

refactor: simplify snapshot size and SKU retrieval functions
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Nov 4, 2025
@k8s-ci-robot
Copy link
Contributor

Hi @priyansh17. Thanks for your PR.

I'm waiting for a github.com member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Nov 4, 2025
Copy link
Member

@andyzhangx andyzhangx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Nov 4, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: andyzhangx, priyansh17

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 4, 2025
@k8s-ci-robot
Copy link
Contributor

@priyansh17: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-azuredisk-csi-driver-verify d069037 link true /test pull-azuredisk-csi-driver-verify
pull-azuredisk-csi-driver-unit d069037 link true /test pull-azuredisk-csi-driver-unit
pull-azuredisk-csi-driver-external-e2e-single-az d069037 link true /test pull-azuredisk-csi-driver-external-e2e-single-az

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@andyzhangx
Copy link
Member

@priyansh17 can you fix the ut failure?

=== RUN   TestCreateVolume/create_managed_disk_error_
I1104 06:46:49.177169   13453 driver.go:82] Enabling controller service capability: CREATE_DELETE_VOLUME
I1104 06:46:49.177176   13453 driver.go:82] Enabling controller service capability: PUBLISH_UNPUBLISH_VOLUME
I1104 06:46:49.177178   13453 driver.go:82] Enabling controller service capability: CREATE_DELETE_SNAPSHOT
I1104 06:46:49.177179   13453 driver.go:82] Enabling controller service capability: LIST_SNAPSHOTS
I1104 06:46:49.177181   13453 driver.go:82] Enabling controller service capability: CLONE_VOLUME
I1104 06:46:49.177182   13453 driver.go:82] Enabling controller service capability: EXPAND_VOLUME
I1104 06:46:49.177183   13453 driver.go:82] Enabling controller service capability: LIST_VOLUMES
I1104 06:46:49.177184   13453 driver.go:82] Enabling controller service capability: LIST_VOLUMES_PUBLISHED_NODES
I1104 06:46:49.177185   13453 driver.go:82] Enabling controller service capability: MODIFY_VOLUME
I1104 06:46:49.177187   13453 driver.go:101] Enabling volume access mode: SINGLE_NODE_WRITER
I1104 06:46:49.177223   13453 controllerserver.go:119] increasing requested disk size from 0GiB to 1GiB (minimal disk size)
W1104 06:46:49.177230   13453 controllerserver.go:1371] could not get subscription id, resource group from snapshot uri (unit-test) with error(invalid URI: unit-test)
    controllerserver_test.go:353: actualErr: (rpc error: code = NotFound desc = invalid URI: unit-test), expectedErr: (rpc error: code = Internal desc = test)
=== RUN   TestCreateVolume/create_managed_disk_not_found_error_

@priyansh17
Copy link
Contributor Author

@priyansh17 can you fix the ut failure?


=== RUN   TestCreateVolume/create_managed_disk_error_

I1104 06:46:49.177169   13453 driver.go:82] Enabling controller service capability: CREATE_DELETE_VOLUME

I1104 06:46:49.177176   13453 driver.go:82] Enabling controller service capability: PUBLISH_UNPUBLISH_VOLUME

I1104 06:46:49.177178   13453 driver.go:82] Enabling controller service capability: CREATE_DELETE_SNAPSHOT

I1104 06:46:49.177179   13453 driver.go:82] Enabling controller service capability: LIST_SNAPSHOTS

I1104 06:46:49.177181   13453 driver.go:82] Enabling controller service capability: CLONE_VOLUME

I1104 06:46:49.177182   13453 driver.go:82] Enabling controller service capability: EXPAND_VOLUME

I1104 06:46:49.177183   13453 driver.go:82] Enabling controller service capability: LIST_VOLUMES

I1104 06:46:49.177184   13453 driver.go:82] Enabling controller service capability: LIST_VOLUMES_PUBLISHED_NODES

I1104 06:46:49.177185   13453 driver.go:82] Enabling controller service capability: MODIFY_VOLUME

I1104 06:46:49.177187   13453 driver.go:101] Enabling volume access mode: SINGLE_NODE_WRITER

I1104 06:46:49.177223   13453 controllerserver.go:119] increasing requested disk size from 0GiB to 1GiB (minimal disk size)

W1104 06:46:49.177230   13453 controllerserver.go:1371] could not get subscription id, resource group from snapshot uri (unit-test) with error(invalid URI: unit-test)

    controllerserver_test.go:353: actualErr: (rpc error: code = NotFound desc = invalid URI: unit-test), expectedErr: (rpc error: code = Internal desc = test)

=== RUN   TestCreateVolume/create_managed_disk_not_found_error_

Sure, will update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants